<?php
$pname = $_POST['pname'];
if( $pname == $row['name']){
    	echo "success";
    }else{
    	echo "failure";
    }
?>
